import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import { unstable_HistoryRouter as HistoryRouter } from 'react-router-dom'
import './index.scss'
import {store} from './store'
import { Provider } from 'react-redux'
import { createBrowserHistory } from 'history'
export const history = createBrowserHistory({window})
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <HistoryRouter history={history}>
      <Provider store={store}>
        <App />
      </Provider>
    </HistoryRouter>
)
